#!/bin/bash

(
	for i in $(seq 1 100);
	do
		#echo $i
		echo "$i" ; sleep 1
		echo "# POSTEP WYNOSI $i"
	done
	#echo "# Updating mail logs" ; sleep 1
	#echo "20" ; sleep 1
	#echo "# Resetting cron jobs" ; sleep 1
	#echo "50" ; sleep 1
	#echo "This line will just be ignored" ; sleep 1
	#echo "75" ; sleep 1
	#echo "# Rebooting system" ; sleep 1
	#echo "100" ; sleep 1
) | zenity --display=:0.0 --progress --auto-close --title="PRZERWA !!" --text="ODPOCZYNEK" --percentage=0


